package com.google.gwt.command.client;

import com.google.gwt.command.client.NeverComeBackEvent.NeverComeBackHandler;
import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;

public class NeverComeBackEvent extends GwtEvent<NeverComeBackHandler> {

	public interface NeverComeBackHandler extends EventHandler {

		void onNeverComeBack(NeverComeBackEvent event);
	}

	private static Type<NeverComeBackHandler> TYPE;

	public static Type<NeverComeBackHandler> getType() {
		return TYPE != null ? TYPE : (TYPE = new Type<NeverComeBackHandler>());
	}

	public NeverComeBackEvent() {
	}

	public com.google.gwt.event.shared.GwtEvent.Type<NeverComeBackHandler> getAssociatedType() {
		return getType();
	}

	protected void dispatch(NeverComeBackHandler handler) {
		handler.onNeverComeBack(this);
	}

}
